<?php
/**
 * Created by JetBrains PhpStorm.
 * User: romanches
 * Date: 23.10.11
 * Time: 14:34
 * To change this template use File | Settings | File Templates.
 */

class UserUtil{

     /**
     * Creates anonymous user. Used in Comment.php
     * @return User
     */
    public static function getAnonymousUser(){
        $user = new User();

        $user->type = User::CLIENT;
        
        $user->path_to_avatar = ThumbUtil::IMAGES_LOCATION.User::DEFAULT_AVATAR;
        $user->username = 'Аноним';

        return $user;
    }
}
